import request from '@/utils/request'

// 查询批次信息列表
export function listBatch(query) {
  return request({
    url: '/mybatchscheduling/batch/list',
    method: 'get',
    params: query
  })
}

// 查询批次信息详细
export function getBatch(批次ID) {
  return request({
    url: '/mybatchscheduling/batch/' + 批次ID,
    method: 'get'
  })
}

// 新增批次信息
export function addBatch(data) {
  return request({
    url: '/mybatchscheduling/batch',
    method: 'post',
    data: data
  })
}

// 修改批次信息
export function updateBatch(data) {
  return request({
    url: '/mybatchscheduling/batch',
    method: 'put',
    data: data
  })
}

// 删除批次信息
export function delBatch(批次ID) {
  return request({
    url: '/mybatchscheduling/batch/' + 批次ID,
    method: 'delete'
  })
}
